package com.test.mybatis.test_mybatis.service.impl;

import com.test.mybatis.test_mybatis.entity.simple.Student;
import com.test.mybatis.test_mybatis.mapper.simple.StudentMapper;
import com.test.mybatis.test_mybatis.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author wxb
 * @Datatime 2021/1/14 17:28
 * @Descript
 */
@Service
public class StudentServiceImpl implements StudentService {

    @Autowired private StudentMapper studentMapper;

    @Override
    public Student selectById(Integer id) {
        return studentMapper.selectByPrimaryKey(id);
    }

    @Override
    public List selectList() {
        return studentMapper.selectAll();
    }


}
